using System;
using System.Collections;
using Sedna.Core.Controls.Support;

namespace Sedna.Core.Controller.Configurations
{
	/// <summary>
	/// Summary description for ContainerConfiguration.
	/// </summary>
	public class ContainerConfiguration : ClientScriptingConfiguration, IContainerConfiguration
	{
		IList controls;
		IContainerLayout layout;
		IList cells;

		public IList Controls
		{
			get { return controls; }
			set { controls = value; }
		}

		public IContainerLayout Layout
		{
			get { return layout; }
			set { layout = value; }
		}

		public IList Cells
		{
			get { return cells; }
			set { cells = value; }
		}

		public override IConfiguration CreateFromTemplate()
		{
			ContainerConfiguration that = (ContainerConfiguration)base.CreateFromTemplate();

			that.layout = this.layout;
			that.controls = this.controls;
			that.cells = this.cells;
			return that;
		}

	}
}
